package com.dstz.demo.rest.controller;

import com.dstz.base.rest.BaseController;
import com.dstz.demo.core.manager.BudgetManager;
import com.dstz.demo.core.model.BudgetContent;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/sys/BudgetContent")
public class BudgetController extends BaseController<BudgetContent> {
    @Resource
    BudgetManager budgetManager;
    @Override
    protected String getModelDesc() {
        return null;
    }
    @PostMapping("/save")
    public String saves(@RequestBody BudgetContent budgetContent){
        budgetManager.save(budgetContent);
        return "添加成功";
    }
}
